clear
use "$P_Data/GS/nearest_neighbor.dta"
rename O StID
rename D Nearest
rename Direct Distance
replace Dist_km = Distance/1000
drop Distance
drop Nearest 

save "$P_Data_Processed/nearest_neighbor.dta", replace
